package com.shigu.searchWord.action;

import com.shigu.PageResponse;
import com.shigu.searchWord.api.KeywordsService;
import com.shigu.searchWord.vo.KeywordResponseVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("wapsjson")
public class KeywordsController {

    @Resource(name = "keywordsServiceImpl")
    KeywordsService keywordsService;

    @RequestMapping("getHotWordList")
    @ResponseBody
    public PageResponse<KeywordResponseVo> getHotWordList(){
        return keywordsService.getHotWordList().success();
    }

}
